import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  // 登录的路由
  {
    path: '/LoginWork',
    name: 'LoginWork',
    component: () => import('../views/LoginWork.vue')
  },
  // 我的页面路由
  {
    path: '/MineWork',
    name: 'MineWork',
    component: () => import('../views/MineWork.vue'),
  },
  // 上传路由
  {
    path: '/Upload',
    name: 'Upload',
    component: () => import('../components/Upload.vue'),
  },
  // 我的会员卡的路由
  {
    path: '/Members',
    name: 'Members',
    component: () => import('../components/Members.vue'),
  },
  // 服务中心的路由
  {
    path: '/Service',
    name: 'Service',
    component: () => import('../components/Service.vue'),
  },
  // 下载APP路由
  {
    path: '/Download',
    name: 'Download',
    component: () => import('../components/Download.vue'),
  },
  // 服务中心路由
  {
    path: '/ServiceCenter',
    name: 'ServiceCenter',
    component: () => import('../components/ServiceCenter.vue'),
  },// 积分商城路由
  {
    path: '/Ji_Afen',
    name: 'Ji_Afen',
    component: () => import('../components/Ji_Afen.vue'),
  },
  // 我的余额点进去的详情
  {
    path: '/Mymoney',
    name: 'Mymoney',
    component: () => import('../components/Mymoney.vue'),
  },
  // 我的余额点击进去之后获取的数据路由
  {
    path: '/Mymonryspecific',
    name: 'Mymonryspecific',
    component: () => import('../components/Mymoneyspecific.vue'),
  },
  // 我的优惠点击去的详情
  {
    path: '/Mypreferential',
    name: 'Mypreferential',
    component: () => import('../components/Mypreferential.vue'),
  },
  // 我的优惠点击进去之后代金卷获取的数据路由
  {
    path: '/Myvouchers',
    name: 'Myvouchers',
    component: () => import('../components/Myvouchers.vue'),
  },
  // 我的优惠点击进去之后红包说明的路由
  {
    path: '/My_A_Btext_Cers',
    name: 'My_A_Btext_C',
    component: () => import('../components/My_A_Btext_C.vue'),
  },
  // 我的优惠点击进去之后历史红包的路由
  {
    path: '/My_A_Bhistory_C',
    name: 'My_A_Bhistory_C',
    component: () => import('../components/My_A_Bhistory_C.vue'),
  },
  // 我的优惠点击进去之后兑换红包的路由
  {
    path: '/My_A_Btab_Ch',
    name: 'My_A_Btab_Ch',
    component: () => import('../components/My_A_Btab_Ch.vue'),
  },
  // 我的优惠点击进去之后兑换红包的路由
  {
    path: '/My_A_Btab_Ct',
    name: 'My_A_Btab_Ct',
    component: () => import('../components/My_A_Btab_Ct.vue'),
  },
  // 我的积分点击去的详情
  {
    path: '/Myintegral',
    name: 'Myintegral',
    component: () => import('../components/Myintegral.vue'),
  },
  // 我的积分点击进去之后获取的数据路由
  {
    path: '/Myintegralspecific',
    name: 'Myintegralspecific',
    component: () => import('../components/Myintegralspecific.vue'),
  },
  // 我的会员卡点进去会员中心
  {
    path: '/Members_said',
    name: 'Members_said',
    component: () => import('../components/Members_said.vue'),
  },
  // 我的蓝色部分进去之后修改用户名
  {
    path: '/Account',
    name: 'Account',
    component: () => import('../components/Account.vue'),
  },
  // 我的蓝色部分进去之后修改密码
  {
    path: '/Password',
    name: 'Password',
    component: () => import('../components/Password.vue'),
  },
  // 我的会员卡购买记录
  {
    path: '/Record',
    name: 'Record',
    component: () => import('../components/Record.vue'),
  },
  // 我的会员卡卡号密码
  {
    path: '/Cardnumber',
    name: 'Cardnumber',
    component: () => import('../components/Cardnumber.vue'),
  },
  // 我的会员卡购买按钮
  {
    path: '/Buy',
    name: 'Buy',
    component: () => import('../components/Buy.vue'),
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
